package com.spzx.product.service;

import com.github.pagehelper.PageInfo;
import com.spzx.model.dto.h5.ProductSkuDto;
import com.spzx.model.dto.product.SkuSaleDto;
import com.spzx.model.entity.product.ProductSku;
import com.spzx.model.vo.h5.ProductItemVo;

import java.util.List;

/**
 * Project: spzx-parent
 * Package: com.spzx.product.service
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2024/3/12 23:03
 */
public interface ProductService {
    //对销量进行排序，获取前10条记录
    List<ProductSku> findProductSkuBySale();

    //商品列表分页查询
    PageInfo<ProductSku> findByPage(Integer page, Integer limit, ProductSkuDto productSkuDto);

    //查询商品详情
    ProductItemVo item(Long skuId);

    //根据skuId查询ProductSku
    ProductSku getBySkuId(Long skuId);

    //更新商品sku销量
    Boolean updateSkuSaleNum(List<SkuSaleDto> skuSaleDtoList);
}
